package com.farah.lease.web.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.farah.lease.model.entity.RoomInfo;
import com.farah.lease.web.app.vo.room.RoomItemVo;
import com.farah.lease.web.app.vo.room.RoomQueryVo;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;

/**
 * @Author 不爱跑步的法拉韶
 * @Date 2024-06-25__10:15
 **/
@Mapper
public interface RoomInfoMapper extends BaseMapper<RoomInfo> {
    IPage<RoomItemVo> pageItem(Page<RoomItemVo> page, RoomQueryVo queryVo);

    BigDecimal selectMinRentByApartmentId(Long id);

    IPage<RoomItemVo> pageItemByApartmentId(Page<RoomItemVo> page, Long id);



//    IPage<RoomItemVo> pageRoomItemByQuery(Page<RoomItemVo> page, RoomQueryVo queryVo);
}
